import { DatePicker } from "antd";
import dayjs from "dayjs";
import React from "react";

const XxDatePicker = (props) => {
    const { picker, format = "YYYY-MM-DD" } = props
    return <DatePicker
        picker={picker ? picker : null}
        format={format}
        style={{
            width: "100%"
        }}
        defaultValue={dayjs()}
        {...props}


    />
}
export default XxDatePicker;